﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class UserModel
    {
        public string DBCommand { get; set; }

        public User User { get; set; }

        public UserAccessModel UserAccess { get; set; }

        [Required]
        [Display(Name = "Password")]
        public string Password { get; set; }

        [Display(Name = "Branch")]
        public string BranchName { get; set; }

        [Display(Name = "Role")]
        public string RoleName { get; set; }

        public IEnumerable<SelectListItem> Branches { get; set; }

        public IEnumerable<SelectListItem> Roles { get; set; }
    }

}